'use strict';
const axios = require('axios')
console.log('env zhong de dizhi',process.env['XYKJ_BASE_URL']);
const BASE_URL = process.env.XYKJ_BASE_URL ? process.env.XYKJ_BASE_URL : 'http://su.com:7001'

const request = axios.create({
    baseURL:BASE_URL,
    timeout:5000,
})

request.interceptors.response.use(
    response => {
        return response.data
    },
    error => {
        return Promise.reject(error)
    }
)

module.exports = request;

